from flask import Flask
from config import app_config
from application.view import init_view


def init_app() -> Flask:
    """flask app 初始化"""

    app = Flask('flask-database')  # app:Flask

    app.config.from_object(app_config)  # config app

    init_view(app)  # init view

    return app  # app


if __name__ == '__main__':
    pass
